package com.henry.chatkit.conversation

import android.view.View
import androidx.recyclerview.widget.RecyclerView

abstract class ConversationBaseHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {

    protected var rootView = itemView
    protected var mAdapter: ConversationListAdapter? = null

    fun setAdapter(adapter: RecyclerView.Adapter<*>) {
        mAdapter = adapter as ConversationListAdapter
    }

    abstract fun layoutViews(conversation: ConversationInfo?, position: Int)

}